package cn.crm.spring.repository;



import cn.crm.spring.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserRepository extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {
    public User findByUsrNameAndUsrPassword(String usrName, String usrPassword);

    //根据用户名查询用户
    public User findUserByUsrName(String usrName);

}
